package com.xlf.web;

import java.util.HashMap;
import java.util.Map;

public class SessionCatalog {
	
	private int c_id;
	private String name;
	private Map<Integer, SessionItem> sessionItems = new HashMap<Integer, SessionItem>();
	private String catalogRemark;
	
	
	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public SessionCatalog(int c_id, String name) {
		this.c_id = c_id;
		this.name = name;
	}
	
	
	public int getC_id() {
		return c_id;
	}
	
	public void setC_id(int c_id) {
		this.c_id = c_id;
	}
	
	public void addItem(SessionItem item) {
		sessionItems.put(item.getP_id(), item);
	}
	
	public void removeItem(int pid) {
		sessionItems.remove(pid);
	}

	public String getCatalogRemark() {
		return catalogRemark;
	}

	public void setCatalogRemark(String catalogRemark) {
		this.catalogRemark = catalogRemark;
	}

	public Map<Integer, SessionItem> getSessionItems() {
		return sessionItems;
	}

	public void setSessionItems(Map<Integer, SessionItem> sessionItems) {
		this.sessionItems = sessionItems;
	}


	

		
}
